home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Internet Pratica
/
IPRAT_01.iso
/
SQL
/
ariacom
/
br15Evaluation.exe
/
br15Evaluation
/
ASP SCripts
/
vbPresentationReport.asp
< prev
next >
Wrap
Text File
|
2002-09-09
|
65KB
|
1,284 lines
<%
'
' Ariacom Business Reports
' Copyright 2001-2002, ARIACOM SARL, Geneva, Switzerland
' All rights reserved
' www.ariacom.com
'
'
'spRepListOfReport
'
sub spRepListOfReport(bStart, theNode)
'''''''
' Title
if isNodeNameId(theNode, kXml_TagItem, kGenItemIdTitle) then
if bStart then
Response.Write("<table width=100% border=0 cellpadding=0 cellspacing=0 height=25 class=""title""><tr><td align=center width=20><img src=""images/fldropen.gif""></td><td align=center width=1% > </td>")
call setPresentationValues("<td><font class=""title"">", "", "</td>")
gPresentationContext = kGenItemIdTitle
else
Response.Write("</tr></table>")
end if
''''''''''''''''''''''
' Error message in red
elseif isNodeNameIdStart(theNode, kXml_TagItem, kGenItemIdError, bStart) then
call setPresentationValues("<br><font class=""error"">", "", "</font><br>")
'''''''''''
'Navigation
elseif isNodeNameId(theNode, kXml_TagItem, kGenItemIdNavigation) then
if bStart then
gPresentationValue = false
gStrInputSize = "12"
Response.Write "<table width=100% ><tr>"
gPresentationContext = kGenItemIdNavigation
else
if not gPresentationValue then
Response.Write "<td width=50% > </td>"
end if
Response.Write "</tr></table>"
end if
'''''''
'Data: start and end the table
elseif isNodeNameId(theNode, kXml_TagItem, kGenItemIdData) then
gPresentationContext = kGenItemIdData
if bStart then
Response.Write "<table border=0 cellpadding=0 width=100% >"
else
Response.Write "</table>"
end if
else
'''''''
'Context
if isNodeNameIdStart(theNode, kXml_TagItemDisplay, kDataId_RepReportNumber, bStart) then
'Number of report
call setPresentationValues("<td width=25% align=right><font class=""normalBold"">", "", " </font></td>")
elseif isNodeNameId(theNode, kXml_TagItem, kItemId_RepFolder) then 'Folder
if bStart then
gPresentationContext = "inFolder"
call setPresentationValues("<td>", "", "</td>")
Response.Write "<tr><td height=20><img src=""images/fldrshut.gif""></td>"
else
Response.Write "</tr>"
end if
elseif isNodeNameId(theNode, kXml_TagItem, kItemId_RepUserReport) or isNodeNameId(theNode, kXml_TagItem, kItemId_MainFile) then 'Report
if bStart then
gPresentationContext = "inReport"
gPresentationState = gPresentationState + 1
if gPresentationState mod 2 = 1 then
gPresentationValue = " bgcolor=#EEEEEE "
else
gPresentationValue=" bgcolor=#FFFFFF "
end if
call setPresentationValues("<td width=30%" & gPresentationValue & "><font class=""normal"">", "", "</td>")
if isNodeNameId(theNode, kXml_TagItem, kItemId_RepUserReport) then
Response.Write "<tr><td align=center width=20><img src=""images/reportFile.gif""></td>"
else
Response.Write "<tr><td align=center width=20><img src=""images/file.gif""></td>"
end if
else
Response.Write "</tr></table></td></tr>"
end if
elseif isNodeNameId(theNode, kXml_TagItemDisplay, kDataId_RepReportType) then
if bStart then
call setPresentationValues("<td width=20% " & gPresentationValue & "><font class=""normal"">", "", " </td>")
else
Response.Write "<td" & gPresentationValue & "><table><tr>"
end if
elseif theNode.text = kAction_RepEditReport and bStart then
call setPresentationValues("<td align=center width=20><img src=""images/editReport.gif""></td><td align=left width=35% ><font class=""normal"">", "", "</td>")
elseif theNode.text = kAction_RepEditFile and bStart then
call setPresentationValues("<td align=center width=20><img src=""images/copy.gif""></td><td align=left><font class=""normal"">", "", "</td>")
elseif theNode.text = kAction_RepEditCopyFile and bStart then
call setPresentationValues("<td align=center width=20><img src=""images/copy.gif""></td><td align=left><font class=""normal"">", "", "</td>")
elseif isNodeNameId(theNode, kXml_TagItemDisplay, kAction_RepEditReport) and bStart then
call setPresentationValues("<td align=center width=20></td><td width=35% ><font class=""normal"">", "", "</td>")
elseif theNode.text = kAction_RepPreview and bStart then
call setPresentationValues("<td align=center width=20></td><td align=center width=20><img src=""images/preview.gif""></td><td align=left><font class=""normal"">", "", "</td>")
'Context Navigation
elseif gPresentationContext = kGenItemIdNavigation then
if theNode.text = kAction_RepDeleteFolder and bStart then
call setPresentationValues("<td width=50% ><table><tr><td align=center width=20><img src=""images/delete.gif""></td><td><font class=""normal"">", "</td><td>", "</td></tr></td></table></td><td width=50% > </td></tr><tr>")
elseif isIdDataStart(theNode, kDataId_RepReportType, bStart) then
call setPresentationValues("<td width=50% ><table><tr><td align=center width=20><img src=""images/newReport.gif""></td><td><font class=""normal"">", " ", "")
elseif theNode.text = kAction_RepNewReport and bStart then
call setPresentationValues(" ", "", "</td></tr></table></td>")
elseif isIdDataStart(theNode, kDataId_RepOutputTemplate, bStart) then
call setPresentationValues("<td width=50% ><table><tr><td align=center width=20><img src=""images/reportTemplate.gif""></td><td><font class=""normal"">", " ", "</td></td></tr></table></tr>")
elseif isIdDataStart(theNode, kDataId_RepFolderName, bStart) then
call setPresentationValues("<tr><td ><table><tr><td align=center width=20><img src=""images/fldrshut.gif""></td><td><font class=""normal"">", " ", "")
elseif theNode.text = kAction_RepNewFolder and bStart then
call setPresentationValues(" ", "", "</td></tr></table></td>")
elseif isIdDataStart(theNode, kDataId_RepNewFolderName, bStart) then
gPresentationValue = true
call setPresentationValues("<td><table><tr><td align=center width=20><img src=""images/rename.gif""></td><td><font class=""normal"">", " ", "")
elseif theNode.text = kAction_RepRenameFolder and bStart then
call setPresentationValues(" ", "", "</td></tr></table></td>")
end if
end if
end if
end sub
'
'spRepListOfReport2
'
sub spRepListOfReport2(bStart, theNode)
'''''''
' Title
if isNodeNameId(theNode, kXml_TagItem, kGenItemIdTitle) then
if bStart then
Response.Write("<table width=100% border=0 cellpadding=0 cellspacing=0 height=25 class=""title"" ><tr><td align=center width=20><img src=""images/searchReport.gif""></td><td align=center width=20> </td>")
call setPresentationValues("<td><font class=""title"">", "", "</td>")
gPresentationContext = kGenItemIdTitle
else
Response.Write("</tr></table>")
end if
''''''''''''''''''''''
' Error message in red
elseif isNodeNameIdStart(theNode, kXml_TagItem, kGenItemIdError, bStart) then
call setPresentationValues("<br><font class=""error"">", "", "</font><br>")
'''''''''''
'Navigation
elseif isNodeNameId(theNode, kXml_TagItem, kGenItemIdNavigation) then
if bStart then
call setPresentationValues("<tr><td>", " ", "</td></tr>")
gPresentationContext = kGenItemIdNavigation
Response.Write "<table>"
else
Response.Write "</table><br>"
end if
'''''''
'Data: start and end the table
elseif isNodeNameId(theNode, kXml_TagItem, kGenItemIdData) then
gPresentationContext = kGenItemIdData
if bStart then
Response.Write "<table border=0 cellpadding=0 width=100% >"
else
Response.Write "</table>"
end if
else
'''''''
'Context
if isNodeNameIdStart(theNode, kXml_TagItemDisplay, kDataId_RepReportNumber, bStart) then
'Number of report
call setPresentationValues("<td class=""texttitle"" width=25% align=right><font class=""normalBold"">", "", " </td>")
elseif isNodeNameId(theNode, kXml_TagItem, kItemId_RepFolder) then 'Folder
if bStart then
gPresentationContext = "inFolder"
call setPresentationValues("<td>", ": ", "</td>")
Response.Write "<tr><td><img src=""images/fldrshut.gif""></td>"
else
Response.Write "</tr>"
end if
elseif isNodeNameId(theNode, kXml_TagItem, kItemId_RepUserReport) or isNodeNameId(theNode, kXml_TagItem, kItemId_MainFile) then 'Report
if bStart then
gPresentationContext = "inReport"
gPresentationState = gPresentationState + 1
if gPresentationState mod 2 = 0 then
gPresentationValue = " bgcolor=#EEEEEE "
else
gPresentationValue=" bgcolor=#FFFFFF "
end if
call setPresentationValues("<td width=40%" & gPresentationValue & "><font class=""normal"">", "", "</td>")
if isNodeNameId(theNode, kXml_TagItem, kItemId_RepUserReport) then
Response.Write "<tr><td align=center width=20><img src=""images/reportFile.gif""></td>"
else
Response.Write "<tr><td align=center width=20><img src=""images/file.gif""></td>"
end if
else
Response.Write "</tr></table></td></tr>"
end if
elseif isNodeNameId(theNode, kXml_TagItemDisplay, kDataId_RepReportType) then
if bStart then
call setPresentationValues("<td width=20% " & gPresentationValue & "><font class=""normal"">", "", " </td>")
else
Response.Write "<td" & gPresentationValue & "><table><tr>"
end if
elseif theNode.text = kAction_RepEditReport and bStart then
call setPresentationValues("<td align=center width=20><img src=""images/editReport.gif""></td><td align=left><font class=""normal"">", "", "</td>")
elseif theNode.text = kAction_RepEditFile and bStart then
call setPresentationValues("<td align=center width=20><img src=""images/copy.gif""></td><td align=left><font class=""normal"">", "", "</td>")
elseif theNode.text = kAction_RepEditCopyFile and bStart then
call setPresentationValues("<td align=center width=20><img src=""images/copy.gif""></td><td align=left><font class=""normal"">", "", "</td>")
elseif isNodeNameId(theNode, kXml_TagItemDisplay, kAction_RepEditReport) and bStart then
call setPresentationValues("<td align=center width=20></td><td align=left width=35% ><font class=""normal"">", "", " </td>")
elseif theNode.text = kAction_RepPreview and bStart then
call setPresentationValues("<td width=20></td><td align=center width=20><img src=""images/preview.gif""></td><td align=left><font class=""normal"">", "", "</td>")
'Context Navigation
elseif gPresentationContext = kGenItemIdNavigation then 'Context Navigation
if isIdData(theNode, kDataId_RepReportType) or isIdData(theNode, kDataId_RepFolderName) then
if bStart then
gStrInputSize = "12"
call setPresentationValues("<tr><td><font class=""normal"">", "</td>", "")
else
call setPresentationValues(" ", "", "")
end if
elseif theNode.nodeName = kXml_TagActionSubmit then
if not bStart then
Response.Write "</td></tr>"
end if
end if
end if
end if
end sub
'
'spRepSelectElement
'
sub spRepSelectElement(bStart, theNode)
'''''''
' Title
if isNodeNameIdStart(theNode, kXml_TagItem, kGenItemIdTitle, bStart) then
gPresentationContext = kGenItemIdTitle
Response.Write("<table width=100% border=0 cellpadding=0 cellspacing=0 height=32 class=""title""><tr><td align=center width=20><img src=""images/reportFile.gif""></td>")
call setPresentationValues("<td width=25% ><font class=""title"">", "", "</td>")
'''''''
' Error message in red
elseif isNodeNameIdStart(theNode, kXml_TagItem, kGenItemIdError, bStart) then
call setPresentationValues("<font class=""error"">", "", "</font><br>")
'''''''
'Table title
elseif isNodeNameIdStart(theNode, kXml_TagItem, kGenItemIdTableTitle, bStart) then
if bStart then
Response.Write "<table width=100% class=""bgdatalist"">"
gPresentationContext = kGenItemIdTableTitle
end if
'''''''
'Data: end the table
elseif isNodeNameId(theNode, kXml_TagItem, kGenItemIdData) then
if bStart then
gPresentationContext = kGenItemIdData
else
Response.Write "</table>"
end if
'''''''''''
'Navigation
elseif isNodeNameId(theNode, kXml_TagItem, kGenItemIdNavigation) then
gPresentationContext = kGenItemIdNavigation
if bStart then
Response.Write("<table width=100% border=0 cellpadding=0 cellspacing=0 height=32 class=""title""><tr><td align=center width=20><img src=""images/reportFile.gif""></td>")
call setPresentationValues("<td width=25% ><font class=""title"">", "", "</td>")
else
Response.Write "</tr></table>"
end if
else
'''''''
'Context
'Title: set help
if gPresentationContext = kGenItemIdTitle or gPresentationContext = kGenItemIdNavigation then
if isNodeNameIdStart(theNode, kXml_TagItemDisplay, kDataId_RepReportNameLabel, not bStart) then
call setPresentationValues("<td width=10% align=right><font class=""normalBold"">", "", "</td>")
elseif theNode.text = kAction_RepSelectRestriction then
if bStart then
call setPresentationValues("<td> ", "", "</td>")
gStrInputEx = " class=""actionSubmit"" "
else
call setPresentationValues("<td>", "", "</td>")
gStrInputEx = ""
end if
elseif theNode.text = kAction_MainViewHelp then
gStrInputType = ""
gStrInputEx = ""
call setPresentationValues("<td align=center width=20>", "<img border=""0"" alt=""" & theNode.getAttribute(kXml_AttributeLabel) & """ src=""images/help.gif"">", "</td></tr></table>")
call theNode.setAttribute(kXml_AttributeLabel, "")
elseif isIdDataStart(theNode, kDataId_RepSelectElementLabel, bStart) then
gStrInputType = ""
gStrInputEx = ""
call setPresentationValues("<table width=100% ><tr><td><font class=""normalBold"">", "", "</td>")
elseif theNode.text = kAction_RepSelectElement then
call setPresentationValues("<td align=right>", "", "</td></tr></table>")
end if
'Table title
elseif gPresentationContext = kGenItemIdTableTitle then
if isNodeNameIdStart(theNode, kXml_TagItemDisplay, kDataId_RepCategoryLabel, bStart) then
call setPresentationValues("<tr><td bgcolor=#EEEEEE width=20% align=middle><font class=""normalBold"">", "", "</td>")
elseif isNodeNameIdStart(theNode, kXml_TagItemDisplay, kDataId_RepElementLabel, bStart) then
call setPresentationValues("<td bgcolor=#EEEEEE align=middle colspan=3><font class=""normalBold"">", "", "</td>")
elseif isNodeNameIdStart(theNode, kXml_TagItemDisplay, kDataId_RepSelectLabel, bStart) then
call setPresentationValues("<td bgcolor=#EEEEEE align=middle width=15% ><font class=""normalBold"">", "", "</td>")
elseif isNodeNameIdStart(theNode, kXml_TagItemDisplay, kDataId_RepSortLabel, bStart) then
call setPresentationValues("<td bgcolor=#EEEEEE align=middle width=20% ><font class=""normalBold"">", "", "</td>")
elseif isNodeNameIdStart(theNode, kXml_TagItemDisplay, kDataId_RepOptionLabel, bStart) then
call setPresentationValues("<td bgcolor=#EEEEEE align=middle width=10% ><font class=""normalBold"">", "", "</td></tr>")
end if
'Data: in table
elseif gPresentationContext = kGenItemIdData then
'category
if isIdDataStart(theNode, kItemId_RepCategory, bStart) then
Response.Write "<tr><td bgcolor=#EEEEEE valign=center align=center "
if theNode.childNodes.length > 1 then Response.Write " rowspan=""" & theNode.childNodes.length & """ "
Response.Write "><font class=""normalBold"">" & theNode.getAttribute(kXml_AttributeLabel) & " </td>"
gPresentationState = 0
'element label
elseif isIdData(theNode, kItemId_RepElementDimension) or isIdData(theNode, kItemId_RepElementMeasure) then
if bStart then
if gPresentationState > 0 then Response.Write "<tr>"
gPresentationState = gPresentationState + 1
if gPresentationValue = " bgcolor=#FFFFFF " then
gPresentationValue = " bgcolor=#EEEEEE "
else
gPresentationValue=" bgcolor=#FFFFFF "
end if
call setPresentationValues("<td" & gPresentationValue & "><font class=""normal"">", "", "</td>")
if isIdData(theNode, kItemId_RepElementDimension) then
Response.Write "<td" & gPresentationValue & " align=center width=20><img src=""images/elementDim.gif""></td>"
else
Response.Write "<td" & gPresentationValue & " align=center width=20><img src=""images/elementMeas.gif""></td>"
end if
Response.Write "<td" & gPresentationValue & "><font class=""normal""> " & theNode.getAttribute(kXml_AttributeLabel) & "</td>"
else
Response.Write "</tr>"
end if
elseif theNode.text = kAction_MainViewDescription and bStart then
if bstart then 'For descriptions
call setPresentationValues("<td align=center " & gPresentationValue & "><font class=""normal"">", "", "</td>")
end if
elseif isIdDataStart(theNode, kDataId_RepPivotPos, bStart) then
'Start of pivot pos
gStrInputSize = "1" 'Force input of text field to 1
call setPresentationValues("<td align=center " & gPresentationValue & "><table><tr><td align=right><font class=""normal"">", "", "</td>")
elseif isIdDataStart(theNode, kDataId_RepSelectOrder, bStart) then
'Start of select pos
call setPresentationValues("<td align=right " & gPresentationValue & "><font class=""normal"">", "", "</td></tr></table></td>")
elseif isIdDataStart(theNode, kDataId_RepSortOrder, bStart) then
'Start of sort order
call setPresentationValues("<td align=center " & gPresentationValue & "><table><tr><td align=right><font class=""normal"">", "", "</td>")
elseif isIdDataStart(theNode, kDataId_RepSortDirection, bStart) then
'Boolean for sort order, end of sort order
call setPresentationValues("<td align=right " & gPresentationValue & "><font class=""normal"">", "", "</td></tr></table></td>")
elseif isIdDataStart(theNode, kDataId_RepCalcOption, bStart) then
'Start of calc option
call setPresentationValues("<td align=center " & gPresentationValue & "><font class=""normal"">", "", "</td>")
end if
end if
end if
end sub
'
'spRepSelectRestriction
'
sub spRepSelectRestriction(bStart, theNode)
'''''''
' Title
if isNodeNameIdStart(theNode, kXml_TagItem, kGenItemIdTitle, bStart) then
gPresentationContext = kGenItemIdTitle
Response.Write("<table width=100% border=0 cellpadding=0 cellspacing=0 height=32 class=""title""><tr><td align=center width=20><img src=""images/reportFile.gif""></td>")
call setPresentationValues("<td width=25% ><font class=""title"">", "", "</td>")
''''''''''''''''''''''
' Error message in red
elseif isNodeNameIdStart(theNode, kXml_TagItem, kGenItemIdError, bStart) then
call setPresentationValues("<br><font class=""error"">", "", "</font><br><br>")
'''''''
'Table title
elseif isNodeNameIdStart(theNode, kXml_TagItem, kGenItemIdTableTitle, bStart) then
if bStart then
Response.Write "<table width=100% class=""bgdatalist"">"
gPresentationContext = kGenItemIdTableTitle
end if
'''''''
'Data: end the table
elseif isNodeNameId(theNode, kXml_TagItem, kGenItemIdData) then
if bStart then
gPresentationContext = kGenItemIdData
else
Response.Write "</table>"
end if
'''''''''''
'Navigation
elseif isNodeNameId(theNode, kXml_TagItem, kGenItemIdNavigation) then
gPresentationContext = kGenItemIdNavigation
if bStart then
Response.Write "<table width=100% border=0 cellpadding=0 cellspacing=0 height=32 class=""navigation""><tr><td align=center width=20><img src=""images/reportFile.gif""></td>"
call setPresentationValues("<td width=25% ><font class=""title"">", "", "</td>")
else
Response.Write "</tr></table>"
end if
else
'''''''
'Context
'Title: set help and group
if gPresentationContext = kGenItemIdTitle or gPresentationContext = kGenItemIdNavigation then
if isNodeNameIdStart(theNode, kXml_TagItemDisplay, kDataId_RepReportNameLabel, not bStart) then
call setPresentationValues("<td width=10% align=right><font class=""normalBold"">", "", "</td>")
elseif theNode.text = kAction_RepSelectElement then
gStrInputEx = " class=""actionSubmit"" "
call setPresentationValues("<td> ", "", " ")
elseif theNode.text = kAction_RepEditRestriction then
if bStart then
gStrInputEx = " class=""actionSubmit"" "
call setPresentationValues(" ", "", "</td>")
else
gStrInputEx = ""
call setPresentationValues("<td>", "", "</td>")
end if
elseif theNode.text = kAction_MainViewHelp then
gStrInputType = ""
gStrInputEx = ""
call setPresentationValues("<td align=center width=20>", "<img border=""0"" alt=""" & theNode.getAttribute(kXml_AttributeLabel) & """ src=""images/help.gif"">", "</td></tr></table>")
call theNode.setAttribute(kXml_AttributeLabel, "")
elseif isIdDataStart(theNode, kDataId_RepSelectRestrictionLabel, bStart) then
call setPresentationValues("<table width=100% class=""tabletitle""><tr><td><font class=""normalBold"">", "", "</td>")
elseif isNodeNameIdStart(theNode, kXml_TagItemDisplay, kItemId_RepGroupName, bStart) then
'Group name
call setPresentationValues("<td align=right><font class=""normalBold"">", " ", "</td>")
elseif theNode.nodeName = kXml_TagItemEnum then
if bstart then 'Start of the group
Response.Write("<td align=right><font class=""normalBold"">")
call setPresentationValues("", " ", " ")
end if
elseif theNode.nodeName = kXml_TagActionSubmit and theNode.text = kAction_RepAddGroupRestriction then
if not bstart then 'End of the group
Response.Write "</td></tr></table>"
end if
end if
'Table title
elseif gPresentationContext = kGenItemIdTableTitle then
if isNodeNameIdStart(theNode, kXml_TagItemDisplay, kDataId_RepCategoryLabel, bStart) then
call setPresentationValues("<tr><td width=20% bgcolor=#EEEEEE valign=middle align=middle><font class=""normalBold"">", "", "</td>")
elseif isNodeNameIdStart(theNode, kXml_TagItemDisplay, kDataId_RepElementLabel, bStart) then
call setPresentationValues("<td bgcolor=#EEEEEE align=middle colspan=3><font class=""normalBold"">", "", "</td>")
elseif isNodeNameIdStart(theNode, kXml_TagItemDisplay, kDataId_RepRestrictionLabel, bStart) then
call setPresentationValues("<td bgcolor=#EEEEEE align=middle width=15% ><font class=""normalBold"">", "", "</td>")
end if
'Data: in table
elseif gPresentationContext = kGenItemIdData then
'category
if isIdDataStart(theNode, kItemId_RepCategory, bStart) then
Response.Write "<tr><td bgcolor=#EEEEEE valign=middle align=middle rowspan=""" & theNode.childNodes.length & """><font class=""normalBold"">"
Response.Write theNode.getAttribute(kXml_AttributeLabel) & " </td>"
gPresentationState = 0
'element label
elseif isIdData(theNode, kItemId_RepElementDimension) or isIdData(theNode, kItemId_RepElementMeasure) then
if bStart then
if gPresentationState > 0 then Response.Write "<tr>"
gPresentationState = gPresentationState + 1
if gPresentationValue = " bgcolor=#FFFFFF " then
gPresentationValue = " bgcolor=#EEEEEE "
else
gPresentationValue=" bgcolor=#FFFFFF "
end if
call setPresentationValues("<td" & gPresentationValue & "><font class=""normal"">", "", "</td>")
if isIdData(theNode, kItemId_RepElementDimension) then
Response.Write "<td" & gPresentationValue & " align=center width=20><img src=""images/elementDim.gif""></td>"
else
Response.Write "<td" & gPresentationValue & " align=center width=20><img src=""images/elementMeas.gif""></td>"
end if
Response.Write "<td" & gPresentationValue & "><font class=""normal"">" & theNode.getAttribute(kXml_AttributeLabel) & "</td>"
else
Response.Write "</tr>"
end if
elseif theNode.nodeName = kXml_TagActionLink then
if bstart then 'desc
call setPresentationValues("<td align=center " & gPresentationValue & "><font class=""normal"">", "", "</td>")
end if
else
if bstart then 'default for check box
gStrInputSize = "1"
call setPresentationValues("<td align=center " & gPresentationValue & "><font class=""normal"">", "", "</td>")
end if
end if
end if
end if
end sub
'
'spRepEditRestriction
'
sub spRepEditRestriction(bStart, theNode)
'''''''
' Title
if isNodeNameIdStart(theNode, kXml_TagItem, kGenItemIdTitle, bStart) then
gPresentationContext = kGenItemIdTitle
Response.Write("<table width=100% border=0 cellpadding=0 cellspacing=0 height=32 class=""title""><tr><td align=center width=20><img src=""images/reportFile.gif""></td>")
call setPresentationValues("<td width=25% ><font class=""title"">", "", "</td>")
''''''''''''''''''''''
' Error message in red
elseif isNodeNameIdStart(theNode, kXml_TagItem, kGenItemIdError, bStart) then
call setPresentationValues("<font class=""error"">", "", "</font>")
'''''''
'Table title
elseif isNodeNameIdStart(theNode, kXml_TagItem, kGenItemIdTableTitle, bStart) then
if bStart then
Response.Write "<table width=100% class=""bgdatalist"">"
gPresentationContext = kGenItemIdTableTitle
end if
'''''''
'Data: end the table
elseif isNodeNameId(theNode, kXml_TagItem, kGenItemIdData) then
if bStart then
gPresentationContext = kGenItemIdData
else
Response.Write "</table>"
end if
'''''''''''
'Navigation
elseif isNodeNameId(theNode, kXml_TagItem, kGenItemIdNavigation) then
gPresentationContext = kGenItemIdNavigation
if bStart then
Response.Write "<table width=100% border=0 cellpadding=0 cellspacing=0 height=32 class=""navigation""><tr><td align=center width=20><img src=""images/reportFile.gif""></td>"
call setPresentationValues("<td width=25% ><font class=""title"">", "", "</td>")
else
Response.Write "</tr></table>"
end if
else
'''''''
'Context
'Title: set help and group
if gPresentationContext = kGenItemIdTitle or gPresentationContext = kGenItemIdNavigation then
if isNodeNameIdStart(theNode, kXml_TagItemDisplay, kDataId_RepReportNameLabel, not bStart) then
call setPresentationValues("<td width=10% align=right><font class=""normalBold"">", "", "</td>")
elseif theNode.text = kAction_RepSelectRestriction then
gStrInputEx = " class=""actionSubmit"" "
call setPresentationValues("<td> ", "", " ")
elseif theNode.text = kAction_RepSetReportDefinition then
if bStart then
gStrInputEx = " class=""actionSubmit"" "
call setPresentationValues(" ", "", "</td>")
else
gStrInputEx = ""
call setPresentationValues("<td>", "", "</td>")
end if
elseif theNode.text = kAction_MainViewHelp then
gStrInputType = ""
gStrInputEx = ""
call setPresentationValues("<td align=center width=20>", "<img border=""0"" alt=""" & theNode.getAttribute(kXml_AttributeLabel) & """ src=""images/help.gif"">", "</td></tr></table>")
call theNode.setAttribute(kXml_AttributeLabel, "")
elseif isIdDataStart(theNode, kDataId_RepEditRestrictionLabel, bStart) then
call setPresentationValues("<table width=100% class=""tabletitle""><tr><td><font class=""normalBold"">", "", "</td>")
elseif isNodeNameIdStart(theNode, kXml_TagItemDisplay, kItemId_RepGroupName, bStart) then
'Group name
call setPresentationValues("<td align=right><font class=""normalBold"">", " ", "</td>")
elseif theNode.nodeName = kXml_TagItemEnum then
if bstart then 'Start of the group
Response.Write("<td align=right><font class=""normalBold"">")
call setPresentationValues("", " ", " ")
end if
elseif theNode.text = kAction_RepEditRestriction then
if not bstart then 'End of the group
Response.Write("</td></tr></table>")
end if
elseif isIdDataStart(theNode, kDataId_RepInvertRestrOperator, bStart) then
call setPresentationValues("<table width=100% class=""tabletitle""><tr><td><font class=""normalBold"">", "", "</td></tr></table>")
end if
'Table title
elseif gPresentationContext = kGenItemIdTableTitle then
if isNodeNameIdStart(theNode, kXml_TagItemDisplay, kDataId_RepCategoryLabel, bStart) then
call setPresentationValues("<tr><td width=15% bgcolor=#EEEEEE valign=middle align=middle><font class=""normalBold"">", "", "</td>")
elseif isNodeNameIdStart(theNode, kXml_TagItemDisplay, kDataId_RepElementLabel, bStart) then
call setPresentationValues("<td bgcolor=#EEEEEE width=12% align=middle colspan=2><font class=""normalBold"">", "", "</td>")
elseif isNodeNameIdStart(theNode, kXml_TagItemDisplay, kDataId_RepRequestUserLabel, bStart) then
call setPresentationValues("<td bgcolor=#EEEEEE width=10% align=middle><font class=""normalBold"">", "", "</td>")
elseif isNodeNameIdStart(theNode, kXml_TagItemDisplay, kDataId_RepRestrictionLabel, bStart) then
call setPresentationValues("<td bgcolor=#EEEEEE align=middle colspan=2><font class=""normalBold"">", "", "</td></tr>")
end if
'Data: in table
elseif gPresentationContext = kGenItemIdData then
'category
if isIdDataStart(theNode, kItemId_RepCategory, bStart) then
Response.Write "<tr><td bgcolor=#EEEEEE valign=middle align=middle rowspan=""" & theNode.childNodes.length & """><font class=""normalBold"">"
Response.Write theNode.getAttribute(kXml_AttributeLabel) & " </td>"
gPresentationState = 0
'element label
elseif isIdData(theNode, kItemId_RepElementDimension) or isIdData(theNode, kItemId_RepElementMeasure) then
if bStart then
if gPresentationState > 0 then Response.Write "<tr>"
gPresentationState = gPresentationState + 1
if gPresentationValue = " bgcolor=#FFFFFF " then
gPresentationValue = " bgcolor=#EEEEEE "
else
gPresentationValue=" bgcolor=#FFFFFF "
end if
call setPresentationValues("<td" & gPresentationValue & "><font class=""normal"">", "", "</td>")
if isIdData(theNode, kItemId_RepElementDimension) then
Response.Write "<td" & gPresentationValue & " align=center width=20><img src=""images/elementDim.gif""></td>"
else
Response.Write "<td" & gPresentationValue & " align=center width=20><img src=""images/elementMeas.gif""></td>"
end if
Response.Write "<td " & gPresentationValue & " width=15% ><font class=""normal"">" & theNode.getAttribute(kXml_AttributeLabel) & "</td>"
else
Response.Write "</tr>"
end if
elseif isIdDataStart(theNode, kDataId_RepRequestUser, bStart) then
call setPresentationValues("<td align=center" & gPresentationValue & "><font class=""normal"">", "<br>", "</td>")
elseif isIdDataStart(theNode, kDataId_RepAggFunction, bStart) then 'Aggr
call setPresentationValues("<td " & gPresentationValue & "><font class=""normal"">", "", "")
elseif isIdDataStart(theNode, kDataId_RepOperator, bStart) then 'Operator
call setPresentationValues("", "", "</td>")
' Item values numeric or date time
elseif isIdDataStart(theNode, kDataId_RepMinimum, bStart) then
gStrInputSize = "12"
call setPresentationValues("<td" & gPresentationValue & ">", "", "")
elseif isIdDataStart(theNode, kDataId_RepMaximum, bStart) then
call setPresentationValues("<font class=""normal""> ", " </font>", "</td></tr>")
elseif isIdDataStart(theNode, kDataId_RepValue, bStart) then
call setPresentationValues("<td " & gPresentationValue & ">", "", "</td></tr>")
end if
end if
end if
end sub
'
'spRepSetReportdefinition
'
sub spRepSetReportdefinition(bStart, theNode)
'''''''
' Title
if isNodeNameId(theNode, kXml_TagItem, kGenItemIdTitle) then
if bStart then
gPresentationContext = kGenItemIdTitle
Response.Write("<table width=100% border=0 cellpadding=0 cellspacing=0 height=32 class=""title""><tr><td align=center width=20><img src=""images/reportFile.gif""></td>")
call setPresentationValues("<td width=25% ><font class=""title"">", "", "</td>")
else
Response.Write "</table>"
end if
''''''''''''''''''''''
' Error message in red
elseif isNodeNameIdStart(theNode, kXml_TagItem, kGenItemIdError, bStart) then
call setPresentationValues("<table width=100% border=0 class=""bgdata""><tr><td><font class=""error"">", "", "</font><br></td></tr></table>")
'''''''
'Data:
elseif isNodeNameId(theNode, kXml_TagItem, kGenItemIdData) then
gPresentationContext = kGenItemIdData
if bStart then
Response.Write("<table width=100% border=0 cellpadding=0 cellspacing=0 class=""bgdata""><tr><td><table class=""bgdata""><tr>")
call setPresentationValues("<tr><td><font class=""normalBold"">", "</td><td><font class=""normal"">", "</td></tr>")
else
Response.Write "</table></td></tr></table>"
end if
'''''''''''
'Navigation
elseif isNodeNameId(theNode, kXml_TagItem, kGenItemIdNavigation) then
gPresentationContext = kGenItemIdNavigation
if bStart then
Response.Write("<table width=100% border=0 cellpadding=0 cellspacing=0 height=32 class=""title""><tr><td align=center width=20><img src=""images/reportFile.gif""></td>")
call setPresentationValues("<td width=25% ><font class=""title"">", "", "</td>")
else
Response.Write "</tr></table>"
end if
else
'''''''
'Context
'Data
if gPresentationContext = kGenItemIdData then
if isIdDataStart(theNode, kDataId_RepEditReportLabel, bStart) then
call setPresentationValues("<tr><td><font class=""normalBold""> ", "", "</td><td></td></tr>")
elseif isIdDataStart(theNode, kDataId_RepFolderList, bStart) then
call setPresentationValues("<tr><td><font class=""normalBold"">", "</td><td><font class=""normal"">", "</td></tr>")
elseif isIdDataStart(theNode, kDataId_RepOptionSpanCol, bStart) then
call setPresentationValues("</table><table class=""bgdata""><tr><td><font class=""normal"">", "", "</td>")
elseif isIdDataStart(theNode, kDataId_RepOptionSpanRow, bStart) then
call setPresentationValues("<td><font class=""normal"">", "", "</td></tr>")
elseif isIdDataStart(theNode, kDataId_RepOptionCntCol, bStart) then
call setPresentationValues("<tr><td><font class=""normal"">", "", "</td>")
elseif isIdDataStart(theNode, kDataId_RepOptionCntRow, bStart) then
call setPresentationValues("<td><font class=""normal"">", "", "</td></tr>")
elseif isIdDataStart(theNode, kDataId_RepOptionSumCol, bStart) then
call setPresentationValues("<tr><td><font class=""normal"">", "", "</td>")
elseif isIdDataStart(theNode, kDataId_RepOptionSumRow, bStart) then
call setPresentationValues("<td><font class=""normal"">", "", "</td></tr>")
elseif isIdDataStart(theNode, kDataId_RepOptionAvgCol, bStart) then
call setPresentationValues("<tr><td><font class=""normal"">", "", "</td>")
elseif isIdDataStart(theNode, kDataId_RepOptionAvgRow, bStart) then
call setPresentationValues("<td><font class=""normal"">", "", "</td></tr>")
elseif isIdDataStart(theNode, kDataId_RepOptionMinCol, bStart) then
call setPresentationValues("<tr><td><font class=""normal"">", "", "</td>")
elseif isIdDataStart(theNode, kDataId_RepOptionMinRow, bStart) then
call setPresentationValues("<td><font class=""normal"">", "", "</td></tr>")
elseif isIdDataStart(theNode, kDataId_RepOptionMaxCol, bStart) then
call setPresentationValues("<tr><td><font class=""normal"">", "", "</td>")
elseif isIdData(theNode, kDataId_RepOptionMaxRow) then
if bStart then
call setPresentationValues("<td><font class=""normal"">", "", "</td></tr></table>")
else
Response.Write "<tr><td><table class=""bgdata"">"
call setPresentationValues("<tr><td valign=top><font class=""normal"">", "</td><td valign=top> <font class=""normal"">", "</td></tr>")
end if
end if
'Title: set help
elseif gPresentationContext = kGenItemIdTitle or gPresentationContext = kGenItemIdNavigation then
if isNodeNameIdStart(theNode, kXml_TagItemDisplay, kDataId_RepReportNameLabel, not bStart) then
call setPresentationValues("<td width=10% align=right><font class=""normalBold"">", "", "</td>")
elseif theNode.text = kAction_RepEditRestriction then
if bStart then
gStrInputEx = " class=""actionSubmit"" "
call setPresentationValues("<td> ", "", " ")
else
gStrInputEx = ""
call setPresentationValues("<td>", "", "</td>")
end if
elseif theNode.text = kAction_MainViewHelp then
gStrInputType = ""
gStrInputEx = ""
call setPresentationValues("<td align=center width=20>", "<img border=""0"" alt=""" & theNode.getAttribute(kXml_AttributeLabel) & """ src=""images/help.gif"">", "</td></tr></table>")
call theNode.setAttribute(kXml_AttributeLabel, "")
end if
end if
end if
end sub
'
'spRepEditReport
'
sub spRepEditReport(bStart, theNode)
'''''''
' Title
if isNodeNameId(theNode, kXml_TagItem, kGenItemIdTitle) then
if bStart then
gPresentationContext = kGenItemIdTitle
call setPresentationValues("<table width=100% border=0 cellpadding=0 cellspacing=0 height=25 class=""title""><tr><td align=center width=20><img src=""images/reportFile.gif""> </td><td><font class=""title"">", "", "</td>")
else
Response.Write "</tr></table><table width=100% border=0 cellpadding=0 cellspacing=0 class=""bgdata""><tr><td>"
end if
''''''''''''''''''''''
' Error message in red
elseif isNodeNameIdStart(theNode, kXml_TagItem, kGenItemIdError, bStart) then
call setPresentationValues("<br><font class=""error"">", "", "</font><br><br>")
'''''''
'Data1: execute actions
elseif isNodeNameId(theNode, kXml_TagItem, kGenItemIdData1) then
if bStart then
Response.Write "<table width=100% class=""bgdata""><tr><td><table width=100% ><tr>"
gPresentationContext = kGenItemIdData1
else
Response.Write "</tr></table></td></tr></table><hr align=center>"
end if
'''''''
'Data2: report definition and edit button
elseif isNodeNameId(theNode, kXml_TagItem, kGenItemIdData2) then
if bStart then
Response.Write "<table width=100% class=""bgdata"">"
gPresentationContext = kGenItemIdData2
call setPresentationValues("<tr><td width=25% valign=top><font class=""normalBold"">", "</td><td><font class=""normal"">", "</td></tr>")
else
Response.Write "</table><hr align=center>"
end if
'''''''
'Data3: report output
elseif isNodeNameId(theNode, kXml_TagItem, kGenItemIdData3) then
if bStart then
Response.Write "<table width=100% class=""bgdata""><tr><td>"
Response.Write "<table width=100% class=""bgdata""><tr><td><font class=""normalBold"">" & theNode.getAttribute(kXml_AttributeLabel)
gPresentationContext = kGenItemIdData3
else
Response.Write "</table></td></tr></table><hr align=center>"
end if
'''''''
'Data4: report schedule
elseif isNodeNameId(theNode, kXml_TagItem, kGenItemIdData4) then
if bStart then
Response.Write "<table width=100% class=""bgdata""><tr><td>"
Response.Write "<table width=100% class=""bgdata""><tr><td><font class=""normalBold"">"& theNode.getAttribute(kXml_AttributeLabel)
gPresentationContext = kGenItemIdData4
else
Response.Write "</table></td></tr></table><hr align=center>"
end if
'''''''
'Data5: move,delete
elseif isNodeNameId(theNode, kXml_TagItem, kGenItemIdData5) then
if bStart then
Response.Write "<table width=100% class=""bgdata""><tr><td><table width=100% ><tr>"
call setPresentationValues("", "", "")
gPresentationContext = kGenItemIdData5
else
Response.Write "</tr></table></td></tr></table>"
end if
'''''''''''
'Navigation
elseif isNodeNameIdStart(theNode, kXml_TagItem, kGenItemIdNavigation, bStart) then
Response.Write "</td></tr></table>"
gPresentationContext = kGenItemIdNavigation
call setPresentationValues("<table width=100% border=0 cellpadding=0 cellspacing=0 height=32 class=""navigation""><tr><td align=right>", "", " </td></tr></table>")
else
'''''''
'Context
if gPresentationContext = kGenItemIdTitle then 'Context Title
if theNode.text = kAction_MainViewHelp then
call setPresentationValues("<td class=""titleLink"" valign=bottom align=right>", "<img border=""0"" alt=""" & theNode.getAttribute(kXml_AttributeLabel) & """ src=""images/help.gif"">", " ")
call theNode.setAttribute(kXml_AttributeLabel, "")
end if
elseif gPresentationContext = kGenItemIdData1 then 'Context Data 1
if theNode.text = kAction_RepExecuteReport and bStart then
call setPresentationValues("<td valign=center align=center width=20><img src=""images/execute.gif""></td><td width=25% ><font class=""normal"">", "", "</td>")
elseif theNode.text = kAction_RepEditExecToFolder and bStart then
call setPresentationValues("<td align=right width=40><img src=""images/executeToFolder.gif""></td><td width=25% ><font class=""normal"">", "", "</td>")
elseif theNode.text = kAction_RepPreview and bStart then
call setPresentationValues("<td align=right width=40><img src=""images/preview.gif""></td width=25% ><td><font class=""normal"">", "", "</td><td></td>")
elseif theNode.text = kAction_RepEditReport and bStart then
call setPresentationValues("<td align=right width=40><img src=""images/refresh.gif""></td width=25% ><td><font class=""normal"">", "", "</td><td></td>")
end if
elseif gPresentationContext = kGenItemIdData2 then 'Context Data 2
if theNode.text = kAction_RepSelectElement and bStart then
'new form to go to the top
Response.Write "</table><table><tr></form><form name=""editReportForm"" method=""post"" action=""" & kStrAspMainPage & """ target=""_top"">"
call setPresentationValues("<td>", "", "</td>")
elseif theNode.text = kAction_RepSetReportDefinition and not bStart then
Response.Write "</tr></form><form name=""nextReportForm"" method=""post"" action=""" & kStrAspMainPage & """ target=""" & gStrMainFrameName & """>"
end if
elseif gPresentationContext = kGenItemIdData3 then 'Context Data 3
if isNodeNameIdStart(theNode, kXml_TagItemEnum, theNode.getAttribute(kXml_AttributeDataTag) & kDataId_RepDeviceList, bStart) then
call setPresentationValues("</td><td align=right><font class=""normal"">", "", " ")
elseif theNode.text = kAction_RepNewReportOutput then
if bStart then
call setPresentationValues("", "", "</td></tr></table>")
else
Response.Write "<table width=100% >"
end if
elseif theNode.text = kAction_RepEditReportOutput and bStart then
Response.Write "<tr>"
call setPresentationValues("<td align=center width=20><img src=""images/reportOutput.gif""></td><td><font class=""normal"">", "", "</td><td width=10><font class=""normal""> </td>")
elseif isIdDataStart(theNode, kDataId_RepDeviceName, bStart) then
call setPresentationValues("<td><font class=""normal"">", "", "</td>")
elseif theNode.text = kAction_RepExecuteReport and bStart then
call setPresentationValues("<td align=center width=20><img src=""images/execute.gif""></td><td width=15% ><font class=""normal"">", "", "</td>")
elseif theNode.text = kAction_RepDeleteReportOutput then
if bStart then
call setPresentationValues("<td align=center width=20><img src=""images/delete.gif""></td><td width=10% ><font class=""normal"">", "", "</td>")
else
Response.Write "</tr>"
end if
end if
elseif gPresentationContext = kGenItemIdData4 then 'Context Data 4
if isNodeNameIdStart(theNode, kXml_TagItemEnum, theNode.getAttribute(kXml_AttributeDataTag) & kDataId_RepScheduleType, bStart) then
call setPresentationValues("</td><td align=right><font class=""normal"">", "", " ")
elseif theNode.text = kAction_RepNewSchedule then
if bStart then
call setPresentationValues("", "", "</td></tr></table>")
else
Response.Write "<table width=100% >"
end if
elseif theNode.text = kAction_RepEditSchedule then
if bStart then
Response.Write "<tr>"
call setPresentationValues("<td align=center width=20><img src=""images/schedule.gif""></td><td width=20% ><font class=""normal"">", "", "</td>")
else
call setPresentationValues("<td> <font class=""normal"">", "", "</td>")
end if
elseif theNode.text = kAction_RepDeleteSchedule then
if bStart then
call setPresentationValues("<td align=center width=20><img src=""images/delete.gif""></td><td width=10% ><font class=""normal"">", "", "</td>")
else
Response.Write "</tr>"
end if
end if
elseif gPresentationContext = kGenItemIdData5 then 'Context Data 5
if isIdDataStart(theNode, kDataId_RepMakeCopy, bStart) then
call setPresentationValues("<td><font class=""normal"">", "", "</td>")
elseif isIdDataStart(theNode, kDataId_RepMoveFolderList, bStart) then
call setPresentationValues("<td align=center width=20><img src=""images/copy.gif""></td><td><font class=""normal"">", "", " ")
elseif isIdDataStart(theNode, kDataId_RepReportName, bStart) then
gStrInputSize = "20"
call setPresentationValues("", "", "")
elseif theNode.text = kAction_RepMoveReport and bStart then
call setPresentationValues(" ", "", "</td></tr></table>")
elseif isIdData(theNode, kDataId_RepConfirmDeletion) then
call setPresentationValues("<table width=100% ><tr><td><font class=""normal"">", "", "</td>")
elseif isIdData(theNode, kDataId_RepDeleteReport) then
call setPresentationValues("<td width=20><img src=""images/delete.gif""></td><td><font class=""normal"">", "", " ")
elseif theNode.text = kAction_RepDeleteReport then
call setPresentationValues("", "", "</td>")
end if
end if
end if
end sub
'
'spRepExecuteReport
'
sub spRepExecuteReport(bStart, theNode)
'''''''
' Title
if isNodeNameIdStart(theNode, kXml_TagItem, kGenItemIdTitle, bStart) then
gPresentationContext = kGenItemIdTitle
call setPresentationValues("<table width=100% border=0 cellpadding=0 cellspacing=0 height=25 class=""title""><tr><td align=center width=20><img src=""images/execute.gif""></td><td><font class=""title"">", "", "</td></tr></table><br><br>")
'''''
'Data
elseif isNodeNameIdStart(theNode, kXml_TagItem, kGenItemIdData, bStart) then
gPresentationContext = kGenItemIdData
call setPresentationValues("<font class=""normal"">", "", "<br><br><br>")
'''''''''''
'Navigation
elseif isNodeNameIdStart(theNode, kXml_TagItem, kGenItemIdNavigation,bStart) then
gPresentationContext = kGenItemIdNavigation
else
'''''''
'Context
if gPresentationContext = kGenItemIdNavigation then 'Context Navigation
if theNode.text = kAction_RepRefreshExecute then
if bStart then
call setPresentationValues("<table width=100% border=0 cellpadding=0 cellspacing=0 height=32 class=""navigation""><tr><td> ", "", "</td>")
else
call setPresentationValues("<td align=right>", "", " </td></tr></table>")
end if
elseif theNode.text <> kAction_RepCancelExecute then
call setPresentationValues("<table width=100% border=0 cellpadding=0 cellspacing=0 height=32 class=""navigation""><tr><td align=right> ", "", " </td></tr></table>")
end if
end if
end if
end sub
'
'spRepEditRestrictionAtExec
'
sub spRepEditRestrictionAtExec(bStart, theNode)
'''''''
' Title
if isNodeNameIdStart(theNode, kXml_TagItem, kGenItemIdTitle, bStart) then
gPresentationContext = kGenItemIdTitle
call setPresentationValues("<table width=100% border=0 cellpadding=0 cellspacing=0 height=25 class=""title""><tr><td align=center width=20><img src=""images/reportFile.gif""></td><td><font class=""title"">", "", "</td></tr></table>")
''''''''''''''''''''''
' Error message in red
elseif isNodeNameIdStart(theNode, kXml_TagItem, kGenItemIdError, bStart) then
call setPresentationValues("<font class=""error"">", "", "</font><br>")
'''''
'Data
elseif isNodeNameId(theNode, kXml_TagItem, kGenItemIdData) then
if bStart then
gPresentationContext = kGenItemIdData
else
response.write("</td></tr></table>")
end if
'''''''''''
'Navigation
elseif isNodeNameIdStart(theNode, kXml_TagItem, kGenItemIdNavigation, bStart) then
gPresentationContext = kGenItemIdNavigation
else
'''''''
'Context
if gPresentationContext = kGenItemIdData then 'Context Data
if isIdDataStart(theNode, kDataId_RepRestrictionLabel, bStart) then
call setPresentationValues("<font class=""normalBold"">", "", "<br><table width=100% class=""bgdatalist""><tr><td>")
elseif isIdDataStart(theNode, kDataId_RepElementLabel, bStart) then
gPresentationState = gPresentationState + 1
if gPresentationState mod 2 = 1 then
gPresentationValue = " bgcolor=#EEEEEE "
else
gPresentationValue=" bgcolor=#FFFFFF "
end if
call setPresentationValues("<tr><td" & gPresentationValue & "><font class=""normal""> ", "", "</td>")
elseif isIdDataStart(theNode, kDataId_RepOperator, bStart) then
call setPresentationValues("<td width=15% align=center" & gPresentationValue & "><font class=""normal"">", "", "</td>")
elseif isIdDataStart(theNode, kDataId_RepValue, bStart) then
call setPresentationValues("<td align=left" & gPresentationValue & ">", "", "")
' Item numeric or date time
elseif isIdDataStart(theNode, kDataId_RepMinimum, bStart) then
call setPresentationValues("<td align=left" & gPresentationValue & ">", "", "")
elseif isIdDataStart(theNode, kDataId_RepMaximum, bStart) then
call setPresentationValues("<br>", "", "")
end if
elseif gPresentationContext = kGenItemIdNavigation then 'Context Navigation
if theNode.text = kAction_RepExecuteReport or theNode.text = kAction_RepPreviewReport or theNode.text = kAction_RepExecuteToFolder2 then
if bStart then
call setPresentationValues("<table width=100% border=0 cellpadding=0 cellspacing=0 height=32 class=""navigation""><tr><td> ", "", "</td>")
else
call setPresentationValues("<td align=right>", "", " </td></tr></table>")
end if
end if
end if
end if
end sub
'
'spRepEditExecToFolder
'
sub spRepEditExecToFolder(bStart, theNode)
'''''''
' Title
if isNodeNameIdStart(theNode, kXml_TagItem, kGenItemIdTitle, bStart) then
gPresentationContext = kGenItemIdTitle
call setPresentationValues("<table width=100% border=0 cellpadding=0 cellspacing=0 height=25 class=""title""><tr><td align=center width=20><img src=""images/reportFile.gif""></td><td><font class=""title"">", "", "</td>")
''''''''''''''''''''''
' Error message in red
elseif isNodeNameIdStart(theNode, kXml_TagItem, kGenItemIdError, bStart) then
call setPresentationValues("<br><font class=""error"">", "", "</font><br>")
'''''
'Data
elseif isNodeNameIdStart(theNode, kXml_TagItem, kGenItemIdData, bStart) then
gPresentationContext = kGenItemIdData
'''''''''''
'Navigation
elseif isNodeNameIdStart(theNode, kXml_TagItem, kGenItemIdNavigation, bStart) then
gPresentationContext = kGenItemIdNavigation
else
'''''''
'Context
if gPresentationContext = kGenItemIdTitle then 'Context Title
if theNode.text = kAction_MainViewHelp then
call setPresentationValues("<td align=center width=20>", "<img border=""0"" alt=""" & theNode.getAttribute(kXml_AttributeLabel) & """ src=""images/help.gif"">", "</td></tr></table>")
call theNode.setAttribute(kXml_AttributeLabel, "")
end if
elseif gPresentationContext = kGenItemIdData then 'Context Data
if isIdDataStart(theNode, kDataId_RepExecuteToFolderList, bStart) then
call setPresentationValues("<br><table><tr><td align=center width=20><img src=""images/executeToFolder.gif""></td><td><font class=""normal"">", "", "")
elseif isIdDataStart(theNode, kDataId_RepFileName, bStart) then
gStrInputSize = "20"
call setPresentationValues("", "", "</td></tr></table><br>")
end if
elseif gPresentationContext = kGenItemIdNavigation then 'Context Navigation
if theNode.text = kAction_RepExecuteToFolder then
if bStart then
call setPresentationValues("<table width=100% border=0 cellpadding=0 cellspacing=0 height=32 class=""navigation""><tr><td> ", "", "</td>")
else
call setPresentationValues("<td align=right>", "", " </td></tr></table>")
end if
end if
end if
end if
end sub
'
'spRepEditReportOutput
'
sub spRepEditReportOutput(bStart, theNode)
'''''''
' Title
if isNodeNameId(theNode, kXml_TagItem, kGenItemIdTitle) then
if bStart then
gPresentationContext = kGenItemIdTitle
call setPresentationValues("<table width=100% border=0 cellpadding=0 cellspacing=0 height=25 class=""title""><tr><td align=center width=20><img src=""images/reportFile.gif""></td><td><font class=""title"">", "", "</td>")
else
Response.Write "</tr></table><table width=100% border=0 cellpadding=0 cellspacing=0 class=""bgdata""><tr><td>"
end if
''''''''''''''''''''''
' Error message in red
elseif isNodeNameIdStart(theNode, kXml_TagItem, kGenItemIdError, bStart) then
call setPresentationValues("<br><font class=""error""> ", "", "</font><br><br>")
'''''''
'Data:
elseif isNodeNameId(theNode, kXml_TagItem, kGenItemIdData) then
if bStart then
gStrTextAreaRows = "6"
gStrTextAreaCols = "40"
Response.Write "<table>"
gPresentationContext = kGenItemIdData
call setPresentationValues("<tr><td><font class=""normalBold"">", "</td><td> <font class=""normal"">", "</td></tr>")
else
Response.Write "<br></td></tr></table>"
end if
'''''''''''
'Navigation
elseif isNodeNameId(theNode, kXml_TagItem, kGenItemIdNavigation) then
gPresentationContext = kGenItemIdNavigation
if bStart then
Response.Write "<table width=100% border=0 cellpadding=0 cellspacing=0 height=32 class=""navigation""><tr><td> "
call setPresentationValues("", "", " ")
else
Response.Write "</td></tr></table>"
end if
else
'''''''
'Context
if gPresentationContext = kGenItemIdTitle then 'Context Title
if theNode.text = kAction_MainViewHelp then
call setPresentationValues("<td align=center width=20>", "<img border=""0"" alt=""" & theNode.getAttribute(kXml_AttributeLabel) & """ src=""images/help.gif"">", "</td></tr></table>")
call theNode.setAttribute(kXml_AttributeLabel, "")
end if
elseif gPresentationContext = kGenItemIdData then 'Context Data
if theNode.getAttribute("id") = theNode.getAttribute(kXml_AttributeDataTag) & kDataId_RepROOptionIfRecordsOnly and bStart then
Response.Write "</table><br>"
call setPresentationValues("<font class=""normal""> ", "", "<br>")
end if
'Navigation: special form for the cancel button
elseif gPresentationContext = kGenItemIdNavigation then
if theNode.text = kAction_RepEditReport then
if bStart then
Response.Write "</td><td align=right>"
end if
end if
end if
end if
end sub
'
'spRepEditSchedule
'
sub spRepEditSchedule(bStart, theNode)
'''''''
' Title
if isNodeNameId(theNode, kXml_TagItem, kGenItemIdTitle) then
if bStart then
gPresentationContext = kGenItemIdTitle
call setPresentationValues("<table width=100% border=0 cellpadding=0 cellspacing=0 height=25 class=""title""><tr><td align=center width=20><img src=""images/reportFile.gif""></td><td><font class=""title"">", "", "</td>")
else
Response.Write "</tr></table><table width=100% border=0 cellpadding=0 cellspacing=0 class=""bgdata""><tr><td>"
end if
''''''''''''''''''''''
' Error message in red
elseif isNodeNameIdStart(theNode, kXml_TagItem, kGenItemIdError, bStart) then
call setPresentationValues("<br><font class=""error""> ", "", "</font><br><br>")
'''''''
'Data:
elseif isNodeNameId(theNode, kXml_TagItem, kGenItemIdData) then
if bStart then
Response.Write "<table>"
gPresentationContext = kGenItemIdData
call setPresentationValues("<tr><td><font class=""normalBold"">", "</td><td> <font class=""normal"">", "</td></tr>")
else
Response.Write "</table><br></td></tr></table>"
end if
'''''''''''
'Navigation
elseif isNodeNameId(theNode, kXml_TagItem, kGenItemIdNavigation) then
gPresentationContext = kGenItemIdNavigation
if bStart then
Response.Write "<table width=100% border=0 cellpadding=0 cellspacing=0 height=32 class=""navigation""><tr><td> "
call setPresentationValues("", "", " ")
else
Response.Write "</td></tr></table>"
end if
else
'''''''
'Context
if gPresentationContext = kGenItemIdTitle then 'Context Title
if theNode.text = kAction_MainViewHelp then
call setPresentationValues("<td align=center width=20>", "<img border=""0"" alt=""" & theNode.getAttribute(kXml_AttributeLabel) & """ src=""images/help.gif"">", "</td></tr></table>")
call theNode.setAttribute(kXml_AttributeLabel, "")
end if
elseif gPresentationContext = kGenItemIdData then 'Context Data
if isIdDataStart(theNode, kDataId_RepScheduleMonthDayNum, bStart) then
gStrInputSize="2"
gPresentationValue = "inMonth"
call setPresentationValues("<tr><td><font class=""normalBold"">", "</td><td> <font class=""normal"">", " ")
elseif isIdDataStart(theNode, kDataId_RepScheduleEveryNPeriod, bStart) then
if gPresentationValue = "inMonth" then
call setPresentationValues(" ", " ", " ")
else
gStrInputSize="2"
call setPresentationValues("<tr><td><font class=""normalBold"">", "</td><td> <font class=""normal"">", " ")
end if
elseif isIdDataStart(theNode, kDataId_RepScheduleDays, bStart) _
or isIdDataStart(theNode, kDataId_RepScheduleMinutes, bStart) _
or isIdDataStart(theNode, kDataId_RepScheduleWeeks, bStart) _
or isIdDataStart(theNode, kDataId_RepScheduleMonths, bStart) then
call setPresentationValues("<font class=""normal""> ", "", "</td></tr>")
elseif isIdDataStart(theNode, kDataId_RepSWDSunday, bStart) then
response.write("<tr><td> </td><td>")
call setPresentationValues("<font class=""normal""> ", " ", " ")
elseif isIdDataStart(theNode, kDataId_RepSWDWednesday, not bStart) then
response.write("</td></tr><tr><td> </td><td>")
elseif isIdDataStart(theNode, kDataId_RepSWDSaturday, not bStart) then
response.write("</td></tr>")
elseif isIdDataStart(theNode, kDataId_RepScheduleStartTime, bStart) then
call setPresentationValues("<tr><td></td><td><table><tr><td><font class=""normal"">", "</td><td><font class=""normal""> ", "</td>")
gStrInputSize="12"
elseif isIdDataStart(theNode, kDataId_RepScheduleEndTime, bStart) then
call setPresentationValues("<td>", "</td><td><font class=""normal"">", "</td></tr></table></td></tr>")
elseif isIdDataStart(theNode, kDataId_RepScheduleStartDate, bStart) then
call setPresentationValues("<tr><td><font class=""normalBold"">", " </td><td><font class=""normal""> ", "</td></tr>")
gStrInputSize="12"
elseif isIdDataStart(theNode, kDataId_RepScheduleStartDateTime, bStart) then
call setPresentationValues("<tr><td><font class=""normalBold"">", " </td><td><font class=""normal""> ", "</td></tr>")
gStrInputSize="20"
elseif isIdDataStart(theNode, kDataId_RepScheduleHasEndDate, bStart) then
call setPresentationValues("<tr><td><font class=""normalBold"">", "", " </td><td><font class=""normal""> ")
elseif isIdDataStart(theNode, kDataId_RepScheduleEndDate, bStart) then
call setPresentationValues("<font class=""normal"">", "", " </td></tr>")
elseif isIdDataStart(theNode, kDataId_RepScheduleDayTime, bStart) then
gStrInputSize="10"
call setPresentationValues("<tr><td><font class=""normalBold"">", " </td><td><font class=""normal""> ", "</td></tr>")
elseif isIdDataStart(theNode, kDataId_RepExecStatus, bStart) then 'Status
Response.Write "</table><hr><table>"
call setPresentationValues("<tr><td><font class=""normalBold"">", " </td><td><font class=""normal""> ", "</td></tr>")
end if
'Navigation: special form for the cancel button
elseif gPresentationContext = kGenItemIdNavigation then
if theNode.text = kAction_RepEditReport then
if bStart then
Response.Write "</td><td align=right>"
end if
end if
end if
end if
end sub
'
'spRepEditFile
'
sub spRepEditFile(bStart, theNode)
'''''''
' Title
if isNodeNameId(theNode, kXml_TagItem, kGenItemIdTitle) then
if bStart then
gPresentationContext = kGenItemIdTitle
call setPresentationValues("<table width=100% border=0 cellpadding=0 cellspacing=0 height=25 class=""title""><tr><td align=center width=20><img src=""images/file.gif""></td><td><font class=""title"">", "", "</td>")
else
Response.Write "</tr></table><table width=100% width=100% border=0 cellpadding=0 cellspacing=0 class=""bgdata""><tr><td><br>"
end if
''''''''''''''''''''''
' Error message in red
elseif isNodeNameIdStart(theNode, kXml_TagItem, kGenItemIdError, bStart) then
call setPresentationValues("<font class=""error""><br> ", "", "</font><br><br>")
'''''''
'Data5: move,delete
elseif isNodeNameId(theNode, kXml_TagItem, kGenItemIdData5) then
if bStart then
Response.Write "<table width=100% class=""bgdata"">"
call setPresentationValues("", "", "<br>")
gPresentationContext = kGenItemIdData5
else
Response.Write "</table>"
call setPresentationValues("", "", "<br>")
end if
'''''''''''
'Navigation
elseif isNodeNameIdStart(theNode, kXml_TagItem, kGenItemIdNavigation, bStart) then
Response.Write("<br></tr></table>")
Response.Write "</td></tr></table>"
gPresentationContext = kGenItemIdNavigation
call setPresentationValues("<table width=100% border=0 cellpadding=0 cellspacing=0 height=32 class=""navigation""><tr><td align=right>", "", " </td></tr></table>")
else
'''''''
'Context
if gPresentationContext = kGenItemIdData1 then 'Context Data 1
if theNode.text = kAction_RepExecuteReport and bStart then
call setPresentationValues("<td align=center width=20><img src=""images/execute.gif""></td><td width=35% ><font class=""normal"">", "", "</td>")
elseif theNode.text = kAction_RepPreview and bStart then
call setPresentationValues("<td align=center width=20><img src=""images/preview.gif""></td><td width=35% ><font class=""normal"">", "", "</td>")
end if
elseif gPresentationContext = kGenItemIdData5 then 'Context Data 5
if isIdDataStart(theNode, kDataId_RepMakeCopy, bStart) then
call setPresentationValues("<tr><td><font class=""normal"">", "", "</td>")
elseif isIdDataStart(theNode, kDataId_RepMoveFolderList, bStart) then
call setPresentationValues("<td align=center width=20><img src=""images/copy.gif""></td><td><font class=""normal""> ", "", " ")
elseif isIdDataStart(theNode, kDataId_RepReportName, bStart) then
gStrInputSize = "20"
call setPresentationValues("", "", "")
elseif theNode.text = kAction_RepMoveFile and bStart then
call setPresentationValues(" ", "", "</td></tr>")
elseif isIdData(theNode, kDataId_RepConfirmDeletion) then
call setPresentationValues("<tr><td><font class=""normal"">", "", "</td>")
elseif isIdData(theNode, kDataId_RepDeleteReport) then
call setPresentationValues("<td align=center width=20><img src=""images/delete.gif""></td><td><font class=""normal"">", "", " ")
elseif theNode.text = kAction_RepDeleteFile then
call setPresentationValues("", "", "</td></tr>")
end if
end if
end if
end sub
%>